﻿@model  string[]
<!-- 索引0为action,索引1为controller-->
<div class="zCollect clearfix">
    <div class="left">
        <input type="checkbox" class="classCheckAll" id="checkall" value=""><label for="checkall">全选</label><a href="javascript:delFavoriteAll()">删除</a>
    </div>
    <div class="right">
        <input type="text" value="请输入名称" id="keyword"><a href="javascript:searchFun()">搜索</a>
    </div>
</div>
<script type="text/ecmascript">
    function searchFun() {
        $.ajax({
            type: "POST",
            url: "@Url.Action(Model[0], Model[1])",
            data: { keyword: $("#keyword").val() },
            beforeSend: function () { $("#itemList").html("数据加载中..."); },
            success: function (data) {
                $("#itemList").html(data);
            }
        });
    }
</script>
